package com.lightning.modules.validator.data;

import java.util.ArrayList;
import java.util.List;

public class Field {
	private String property;
	private List<Valid> validator;

	public Field(String property) {
		this.property = property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getProperty() {
		return property;
	}

	public void addValidator(Valid validator) {
		if (this.validator == null) {
			this.validator = new ArrayList<Valid>();
		}
		this.validator.add(validator);
	}

	public void setValidator(List<Valid> validator) {
		this.validator = validator;
	}

	public List<Valid> getValidator() {
		return validator;
	}
}
